package nc.ui.pf.changedir;

import nc.ui.pf.change.VOConversionUI;
import nc.vo.pf.change.UserDefineFunction;

public class CHG36LPTOF4 extends VOConversionUI {

	public CHG36LPTOF4() {

	}

	public String getAfterClassName() {
		return "nc.vo.cmp.change.Fts36LPTOF4Changer";
	}

	public String[] getField() {
		return (new String[] { "H_djlxbm->DESTBILLTYPE", 
				"H_dwbm->H_pk_gatherunit", "B_bzbm->H_pk_currtype",
				"H_djrq->H_dapprovedate",
				"B_billdate->H_dapprovedate",
				"B_zy->B_memo", "B_bfyhzh->B_pk_accid", "B_dfybje->B_money",
//				"B_dfbbje->B_localmoney",
				"B_dffbje->B_assmoney",

				"B_ddlx->H_pk_ipay", 
//				"B_bbhl->B_localrate",
				"B_szxmid->B_pk_costsubj",
                "H_xslxbm->H_pk_busitype", "B_fbhl->B_assrate" });
	}

	public String[] getFormulas() {
		return new String[] { "H_ywbm->getdjlx( H_dwbm , H_djlxbm)",
				"H_djkjnd->getKJND( H_djrq )", "H_djkjqj->getKJQJ( H_djrq  )",
				"H_shkjnd->getKJND( H_djrq )", "H_shkjqj->getKJQJ( H_djrq  )",
				"B_hbbm->getHBBM(H_pk_paycenter,H_dwbm)", "H_lybz->\"5\"",
				"H_pzglh->\"2\"", "H_qcbz->\"N\"", "H_djdl->\"sj\"",
				"H_djzt->\"-99\"", "H_transientFlag->\"7\"",
				"B_tradertype->\"0\"", "B_jsfsbm->\"36LP\"" };
	}

	public UserDefineFunction[] getUserDefineFunction() {
		try {
			UserDefineFunction userdefinefunction = new UserDefineFunction();
			userdefinefunction.setClassName("nc.bs.arap.change.PubChangeProxy");
			userdefinefunction.setMethodName("getKJQJ");
			userdefinefunction.setReturnType(Class.forName("java.lang.String"));
			userdefinefunction.setArgTypes(new Class[] { Class
					.forName("java.lang.String") });
			userdefinefunction.setArgNames(new String[] { "&d1" });
			UserDefineFunction userdefinefunction1 = new UserDefineFunction();
			userdefinefunction1
					.setClassName("nc.bs.arap.change.PubChangeProxy");
			userdefinefunction1.setMethodName("getKJND");
			userdefinefunction1
					.setReturnType(Class.forName("java.lang.String"));
			userdefinefunction1.setArgTypes(new Class[] { Class
					.forName("java.lang.String") });
			userdefinefunction1.setArgNames(new String[] { "&newdate" });
			UserDefineFunction userdefinefunction2 = new UserDefineFunction();
			userdefinefunction2
					.setClassName("nc.bs.arap.change.PubChangeProxy");
			userdefinefunction2.setMethodName("getdjlx");
			userdefinefunction2
					.setReturnType(Class.forName("java.lang.String"));
			userdefinefunction2.setArgTypes(new Class[] {
					Class.forName("java.lang.String"),
					Class.forName("java.lang.String") });
			userdefinefunction2
					.setArgNames(new String[] { "&corp", "&djlxbm" });
			UserDefineFunction userdefinefunction3 = new UserDefineFunction();
			userdefinefunction3
					.setClassName("nc.bs.arap.change.PubChangeProxy");
			userdefinefunction3.setMethodName("getHBBM");
			userdefinefunction3
					.setReturnType(Class.forName("java.lang.String"));
			userdefinefunction3.setArgTypes(new Class[] {
					Class.forName("java.lang.String"),
					Class.forName("java.lang.String") });
			userdefinefunction3
					.setArgNames(new String[] { "&pk_settlecenter,&pk_corp" });
			UserDefineFunction auserdefinefunction[] = new UserDefineFunction[4];
			auserdefinefunction[0] = userdefinefunction;
			auserdefinefunction[1] = userdefinefunction1;
			auserdefinefunction[2] = userdefinefunction2;
			auserdefinefunction[3] = userdefinefunction3;
			return auserdefinefunction;
		} catch (ClassNotFoundException classnotfoundexception) {
			classnotfoundexception.printStackTrace();
		}
		return null;
	}
}
